package com.example.lp.lpmvvm.one.view;

import android.content.Context;
import android.util.Log;
import android.view.View;

import com.example.lp.lpmvp.R;
import com.example.lp.lpmvp.databinding.TitleViewBinding;
import com.example.lp.lpmvvm.one.viewmodel.TitleModelView;

/**
 * Author by lp,on 2021/6/15/015,17:44.
 */
public class TitleView extends BaseMvvmView<TitleModelView, TitleViewBinding> {
    private static final String TAG="TitleView";
    public TitleView(Context context) {
        super(context);
    }

    @Override
    protected void setDataToView(TitleModelView viewModel) {
        getDataBinding().setTitleData(viewModel);
    }

    @Override
    protected int getViewLayoutId() {
        return R.layout.title_view;
    }

    @Override
    protected void RootClick(View view) {
        Log.i(TAG, "RootClick: ");
    }
}
